import Vue from 'vue'
import Router from 'vue-router'
// import Login from '@/pages/login/Login'
import Index from '@/pages/index/Index'
// import WechatHome from '@/pages/index/wechat/Home/Home'
// import IndexDefault from '@/pages/index/default/Default'
//product
// import ProductList from '@/pages/index/wechat/productList/List'
// import ProductAdd from '@/pages/index/wechat/productList/AddProduct'
// import CMSList from '@/pages/index/cms/CMSlist/CMSlist'
// import CMSAdd from '@/pages/index/cms/CMSlist/CMSAdd'
// import CMSGifts from '@/pages/index/cms/CMSSettings/gifts/Gifts'
// import CMSNews from '@/pages/index/cms/CMSSettings/news/News'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component:() =>import('@/pages/login/Login') 
      // Login
    },
    {
      path: '/index',
      name: 'Index',
      component: Index,
      children: [
        { path: '/indexDefault', 
          component:() =>import('@/pages/index/default/Default') 
          //  IndexDefault 
        },
        { path: '/empty', 
          component:() =>import('@/pages/index/default/Empty') 
          //  Empty
        },
        { path: '/wechat/Home',
          component:() =>import('@/pages/index/wechat/Home/Home') 
          //  WechatHome
           },
        //新闻相关
            { path: '/wechat/NewsList',
            component:() =>import('@/pages/index/wechat/News/List') 
            // newslist
            },
            { path: '/wechat/AddNews',
            component:() =>import('@/pages/index/wechat/News/AddNews') 
            //  addnews
            },
        //设计师相关
            { path: '/wechat/addDesign',
            component:() =>import('@/pages/index/wechat/Design/AddDesign') 
            //  addDesign
            },
            
            { path: '/wechat/DesignList',
            component:() =>import('@/pages/index/wechat/Design/List') 
            // DesignList
            },
            { path: '/wechat/addDesignItem',
            component:() =>import('@/pages/index/wechat/DesignItem/AddDesignItem') 
            //  addDesign
            },
            { path: '/wechat/DesignItemList',
            component:() =>import('@/pages/index/wechat/DesignItem/List') 
            //  addDesign
            },
            
        { path: '/wechat/productList', 
          component: () =>import('@/pages/index/wechat/productList/List') 
          // ProductList 
        },
        { path: '/wechat/productAdd', 
          component: () =>import('@/pages/index/wechat/productList/AddProduct') 
          // ProductAdd 
        },
        { path: '/wechat/productType', 
          component: () =>import('@/pages/index/wechat/productType/productType') 
          // productType
        },
        { path: '/wechat/productStyle', 
          component: () =>import('@/pages/index/wechat/productStyle/productStyle') 
          // productType
        },
        { path: '/wechat/banner', 
          component: () =>import('@/pages/index/wechat/Banner/Banner') 
          // productType
        },
        { path: '/wechat/web', 
          component: () =>import('@/pages/index/wechat/Banner-web/Web') 
          // productType
        },
        { path: '/CMS/CMSList', 
          component: () =>import('@/pages/index/cms/CMSlist/CMSlist')
        // CMSList 
        },
        { path: '/CMS/CMSAdd', 
          component:() =>import('@/pages/index/cms/CMSlist/CMSAdd' )
          // CMSAdd 
        },
        { path: '/CMS/CMSChange', 
          component:() =>import('@/pages/index/cms/CMSlist/CMSChange' )
          // CMSAdd 
        },
        { path: '/CMS/CMSSettings-gifts', 
          component: () =>import('@/pages/index/cms/CMSSettings/gifts/Gifts' )
        // CMSGifts
        },
        { path: '/CMS/CMSSettings-news', 
        component:() =>import('@/pages/index/cms/CMSSettings/news/News' )
        //  CMSNews 
        },
        { path: '/CMS/CMSUserAdd', 
        component:() =>import('@/pages/index/cms/CMSUser/User' )
        //  CMSNews 
        },
        { path: '/CMS/CMSUserChange', 
        component:() =>import('@/pages/index/cms/CMSUser/Change/ChangePassword' )
        //  CMSUserChange 
        },
        { path: '/wx/addCase', 
        component:() =>import('@/pages/index/wx/Case/AddCase' )
        //  addCase
        },
        { path: '/wx/addMessage', 
        component:() =>import('@/pages/index/wx/Message/AddMessage' )
        //  addCase
        },
      ]
    }
  ]
})
